/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const router = {
  path: '/order',
  component: Layout,
  name: 'order',
  meta: {
    title: '订单管理',
    icon: 'orders'
  },
  children: [
    {
      path: 'orderList',
      component: () => import('@/views/order/orderList'),
      name: 'orderList',
      meta: {
        title: '订单列表'
      }
    },
    {
      path: 'orderDetail/:id',
      hidden: true,
      component: () => import('@/views/order/orderDetail'),
      name: 'orderDetail',
      meta: {
        title: '订单详情'
      }
    }
  ]
}
export default router
